<?php
	if (!function_exists('return_body_head'))
	{
		function return_body_head($site_url, $email_header, $st_logo = '', $st_url = '')
		{
			return <<< EOD
 <body>
      <table width="100%" cellpadding="0" cellspacing="0" border="0" id="background-table">
         <tbody>
            <tr>
               <td align="center" bgcolor="#ececec">
                  <table class="w640" style="margin:0 10px;" width="640" cellpadding="0" cellspacing="0" border="0">
                     <tbody>
                        <tr>
                           <td class="w640" width="640" height="20"></td>
                        </tr>
                        <tr>
                           <td class="w640" width="640">
                              <table id="top-bar" class="w640" width="640" cellpadding="0" cellspacing="0" border="0" bgcolor="#A05A92" style="background-color: #8BB96B;border-radius: 6px 6px 0 0;">
                                 <tbody>
                                    <tr>
                                       <td class="w15" width="15"></td>
                                       <td class="w325" width="350" valign="middle" align="left">
                                          <table class="w325" width="350" cellpadding="0" cellspacing="0" border="0">
                                             <tbody>
                                                <tr>
                                                   <td class="w325" width="350" height="8"></td>
                                                </tr>
                                             </tbody>
                                          </table>
                                          <table class="w325" width="350" cellpadding="0" cellspacing="0" border="0">
                                             <tbody>
                                                <tr>
                                                   <td class="w325" width="350" height="8"></td>
                                                </tr>
                                             </tbody>
                                          </table>
                                       </td>
                                       <td class="w30" width="30"></td>
                                       <td class="w255" width="255" valign="middle" align="right">
                                          <table class="w255" width="255" cellpadding="0" cellspacing="0" border="0">
                                             <tbody>
                                                <tr>
                                                   <td class="w255" width="255" height="8"></td>
                                                </tr>
                                             </tbody>
                                          </table>
                                          <table cellpadding="0" cellspacing="0" border="0">
                                             <tbody>
                                                <tr>
                                                   <td valign="middle">
                                                      <fblike likeurl="https://www.facebook.com/mostcoupon.inc"><img src="http://mostcoupon.com/email_imgs/like.png" border="0" width="8" height="14" alt="Facebook icon"></fblike>
                                                   </td>
                                                   <td width="3"></td>
                                                   <td valign="middle">
                                                      <div class="header-content">
                                                         <a style="color:white;text-decoration: underline;" href="https://www.facebook.com/Getthecouponcode">Visit our page</a>
                                                      </div>
                                                   </td>
                                                   <td class="w10" width="10"></td>
                                                   <td valign="middle">
                                                      <tweet><img src="http://mostcoupon.com/email_imgs/tweet.png" border="0" width="17" height="13" alt="Twitter icon"></tweet>
                                                   </td>
                                                   <td width="3"></td>
                                                   <td valign="middle">
                                                      <div class="header-content">
                                                         <a href="http://twitter.com/share?url=http://mostcoupon.com&text=Save money with MostCoupon.com!&via=mostcoupon.com&related=yarrcat" style="color:white;text-decoration: underline;">Tweet</a>
                                                      </div>
                                                   </td>

                                                </tr>
                                             </tbody>
                                          </table>
                                          <table class="w255" width="255" cellpadding="0" cellspacing="0" border="0">
                                             <tbody>
                                                <tr>
                                                   <td class="w255" width="255" height="8"></td>
                                                </tr>
                                             </tbody>
                                          </table>
                                       </td>
                                       <td class="w15" width="15"></td>
                                    </tr>
                                 </tbody>
                              </table>
                           </td>
                        </tr>
                        <tr>
                           <td id="header" class="w640" width="640" align="center" bgcolor="#A05A92">
                              <table class="w640" width="640" cellpadding="0" cellspacing="0" border="0">
                                 <tbody>
                                    <tr>
                                       <td class="w30" width="30"></td>
                                       <td class="w580" width="580" height="30"></td>
                                       <td class="w30" width="30"></td>
                                    </tr>
                                    <tr>
                                       <td class="w30" width="30"></td>
                                       <td class="w580" width="580">
                                          <div align="center" id="headline">
                                          <a href="$st_url">
                                            <div style="
                                            background: #fff;
                                            border: 1px solid #cfcfcf;
                                            z-index: 5;
                                            position: relative;
                                            width: 105px;
                                            opacity: 1;
                                            text-align: center;
                                            line-height: 100px;
                                            cursor: pointer;
                                            padding:10px;
                                            border-radius:5px;
                                            margin-bottom: 10px;
                                            ">
                                            <img src="$st_logo"
                                            style="
                                            height: auto;
                                            max-width: 100%;
                                            vertical-align: middle;
                                            border: 0;
                                            border-radius:4px
                                            "
                                            />
                                            </div>
                                          </a>
                                             <p
                                             style="font-size: 24px;
                                                    margin-bottom: 30px;
                                                    margin-top: 0px;
                                                    color: white;
                                                ">
                                                <strong>
                                                   <a href="$site_url"
                                                   style = "
                                                   color: white;
                                                   text-decoration: none;
                                                   "
                                                   >
                                                      <singleline label="Title">$email_header</singleline>
                                                   </a>
                                                </strong>
                                             </p>
                                          </div>
                                       </td>
                                       <td class="w30" width="30"></td>
                                    </tr>
                                 </tbody>
                              </table>
                           </td>
                        </tr>
                        <tr id="simple-content-row">
                           <td class="w640" width="640" bgcolor="#ffffff">
                              <table class="w640" width="640" cellpadding="0" cellspacing="0" border="0">
                                 <tbody>
                                    <tr>
                                       <td class="w30" width="30"></td>
                                       <td class="w580" width="580">
                                          <repeater>
                                             <layout label="Text only">
EOD;
		}
	}
?>